import request from '/@/utils/request';

/**
 * 学生管理
 * @param params 要传的参数值
 * @returns 返回接口数据
 * @method studentInfo 获取学生信息
 * @method getStudentInfo 查询学生信息
 * @method delStudentInfo 删除学生信息
 */

export function studentInfo(params: number) {
	return request({
		url: `student-lesson/query?Page=${params}`,
		method: 'get',
	});
}

export function getStudentInfo(params: any) {
	return request({
		url: `student-lesson/query?student_id=${params.student_id}&student_name=${params.student_name}&lesson_name=${params.lesson_name}&phone=${params.phone}&Page=${params.Page}`,
		method: 'get',
	});
}

export function delStudentInfo(params: any) {
    return request({
        url: 'student/delete',
        method: 'delete',
		data: params,
    });
}